package cn.ycms.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import cn.ycms.bean.Person;
import cn.ycms.jdbc.JdbcUtil;

import cn.ycms.jdbc.support.HashMapMapper;

@Transactional
public class TestService extends ServiceUtil<Person> implements cn.ycms.service.TestService{

	@Resource private JdbcUtil jdbcUtil;
	public void TestjdbcUtil() throws Exception
	{ String sqlString="select * from Person";
	List<Map<String, String>> list=jdbcUtil.queryList(sqlString, new HashMapMapper());
	
	for(int i=0;i<list.size();i++)
	{
		Map<String ,String> map= list.get(i);
		
	System.out.print(map);
	}
	}
	public int DeleteFalseAll() {
		// TODO Auto-generated method stub
		return 0;
	}
	public int DeleteTrueAll() {
		// TODO Auto-generated method stub
		return 0;
	}
	public int Deletefalse(List<String> list) {
		// TODO Auto-generated method stub
		return 0;
	}
	public int Deletetrue(List<String> list) {
		// TODO Auto-generated method stub
		return 0;
	}
	public List<Person> GetEntitybyCond(Map<String, Object> parms) {
		// TODO Auto-generated method stub
		return null;
	}
	public Person GetEntitybyId(String id) {
		// TODO Auto-generated method stub
		return null;
	}
	public List<Person> GetEntitybyPage(Map<String, Object> parms, int Start,
			int limit) {
		// TODO Auto-generated method stub
		return null;
	}
	public Person GetFirstEntity() {
		// TODO Auto-generated method stub
		return null;
	}
	public List<Person> GetListAll() {
		// TODO Auto-generated method stub
		return null;
	}
	public int UpdateEntity(Person entity) {
		// TODO Auto-generated method stub
		return 0;
	}
	public int UpdatebyCond(Map<String, String> parms, Map<String, String> value) {
		// TODO Auto-generated method stub
		return 0;
	}
	public int UpdatelistEntity(List<Person> list) {
		// TODO Auto-generated method stub
		return 0;
	}
	public void save(Person entity) {
		// TODO Auto-generated method stub
		
	}
	public void saveList(List<Person> list) {
		// TODO Auto-generated method stub
		
	}
	public String saveReturnId(Person entity) {
		// TODO Auto-generated method stub
		return null;
	}
	/* (non-Javadoc)
	 * @see cn.ycms.service.PublicService#FalseDeleteByID(java.io.Serializable)
	 */
	public void FalseDeleteByID(String id) {
		// TODO Auto-generated method stub
		
	}
	/* (non-Javadoc)
	 * @see cn.ycms.service.PublicService#truedeletebyID(java.io.Serializable)
	 */
	public void truedeletebyID(String id) {
		// TODO Auto-generated method stub
		
	}

	
	}
